//
//  Soldier.m
//  Day02综合知识
//
//  Created by wenjim on 17/9/12.
//  Copyright © 2017年 WenJim. All rights reserved.
//

#import "Soldier.h"

@implementation Soldier

-(void)Fire:(Gun *)gun clip:(Clip *)clip
{
    
    // 判断是否有枪和子弹
    if (gun != nil && clip != nil) {
        
        [gun shoot:clip];
    }else{
        NSLog(@"请给予士兵一把枪和弹夹");
    }
}
@end
